<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
?>
<form action="<?php echo JRoute::_('index.php?option=com_shop'); ?>"   method="post" name="adminForm" enctype="multipart/form-data">
<div class="width-60 fltlft">
		<fieldset class="adminform">
			<legend>Danh mục ngành nghề</legend>
			<ul class="adminformlist">
				<li><label id="title" for="" class="required" title="">Tiêu đề<span class="star">&nbsp;*</span></label>
                <input type="text" name="title" id="title" value="" class="inputbox required" size="30" aria-required="true" required="required"></li>
				<li><label id="alias" for="alias" title="">Alias</label>
                <input type="text" name="alias" id="alias" value="" class="inputbox" size="45"></li>
                <li>
                <label id="state" for="state">Bật</label>
			<select name="state" class="inputbox">
				<option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option>
				<?php echo JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', 1, true);?>
			</select>
                </li>
                <label id="home" for="home">Trang chủ</label>
			<select name="home" class="inputbox">
				<?php echo JHtml::_('select.options', $this->homePageArray(), 'value', 'text', 1, true);?>
			</select>
                </li>
                <label id="parent_id" for="parent_id">Danh mục cha</label>
			<select name="parent_id" class="inputbox">
            	<option value=""><?php echo  JText::_('JGLOBAL_ROOT_PARENT'); ?></option>
				<?php echo JHtml::_('select.options', $this->opt, 'value', 'text', '', true);?>
			</select>
                </li>
                 <label id="upload_file" for="upload_file">Ảnh danh mục</label>
                 <input type="file" name="upload_file" />
                </li>
			</ul>
            <div class="clr"></div>
            <label>Mô tả danh mục</label>
            <div class="clr"></div>
            <?php 
			$editor =& JFactory::getEditor();
echo $editor->display('description', '', '100%', '400', '60', '20', true);
			
			?>
		</fieldset>
</div>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
	
</form>